package com.itmg.tools.httpclient;

import com.itmg.vo.TargetDataVO;

public class HttpClient {
	
	public HttpClient() {
	}
	
	public static TargetDataVO getDataByURL(TargetDataVO targetDataVO)
	{
		/*String siteurl = targetDataVO.getCharset();
		String charset = targetDataVO.getCharset();
		int timeout = targetDataVO.getTimeOut();
        StringBuffer sb = new StringBuffer();
        InputStream is = null;
        try {
            URL url = new URL(siteurl);
            URLConnection urlCon = url.openConnection();
  		    urlCon.setConnectTimeout(timeout);
  		    urlCon.setReadTimeout(timeout * 2);
  		    is = urlCon.getInputStream();
            BufferedReader in = new BufferedReader(new InputStreamReader(is, charset));
            String temp;
            while ((temp = in.readLine()) != null) {
                sb.append(temp);
                sb.append("\n");
            }
            in.close();
        }catch(Exception me){
            me.printStackTrace();           
        }finally
        {
        	try {
				is.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
        }
        targetDataVO.setContentData(sb.toString());
        return targetDataVO;*/
		return null;
	}
}
